//
//  PTMineItemView.swift
//  PropertyCommunity
//
//  Created by benwang on 2021/6/23.
//

import UIKit
import SnapKit
import DesignKit

class PTMineItemView: UIView {

   let label = UILabel()

  override init(frame: CGRect) {
    super.init(frame: frame)

    layer.cornerRadius = 8
    layer.masksToBounds = true
    backgroundColor = .white
    
    addSubview(label)

    label.snp.makeConstraints { make in
      make.left.equalToSuperview().offset(CGFloat.medium)
      make.centerY.equalToSuperview()
    }

    let arraw = UIImageView(image: .init(named: "m_right_arraw"))
    addSubview(arraw)
    arraw.snp.makeConstraints { make in
      make.right.equalToSuperview().offset(-CGFloat.medium)
      make.centerY.equalToSuperview()
    }
  }

  required init?(coder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
  }
}
